package com.wanmait.recruitment.webController;


import com.wanmait.recruitment.pojo.Message;
import com.wanmait.recruitment.pojo.Userinfo;

import com.wanmait.recruitment.pojo.WebMenu;
import com.wanmait.recruitment.service.MessageService;
import com.wanmait.recruitment.service.WebMenuService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

@Controller
@RequestMapping("zhuang/include")
public class WebMenuController {
    @Resource
    private WebMenuService webMenuService;
    @RequestMapping("header")
    @ModelAttribute("webMenus")
    public List<WebMenu> getHeader(){
       return webMenuService.findAll();
    }
    @RequestMapping("footer")
    public void getFooter(){}
    @RequestMapping("backTop")
    public void getBackTop(){}
}
